package com.action.schedule;

import com.db.schedule.*;

public class UpdateAction {
	private int sabun;
	private int sno;
	private String psubject;
	private String pcontent;
	private String pplace;
	private String sday;
	private String sday1;
	private String sday2;
	private ScheduleDAO scheduleDAO;
	
	
	public int getSabun() {
		return sabun;
	}
	public void setSabun(int sabun) {
		this.sabun = sabun;
	}
	public void setSno(int sno) {
		this.sno = sno;
	}
	public void setPsubject(String psubject) {
		this.psubject = psubject;
	}
	public void setPcontent(String pcontent) {
		this.pcontent = pcontent;
	}
	public void setPplace(String pplace) {
		this.pplace = pplace;
	}
	public void setSday(String sday) {
		this.sday = sday;
	}
	public void setSday1(String sday1) {
		this.sday1 = sday1;
	}
	public void setSday2(String sday2) {
		this.sday2 = sday2;
	}
	public void setScheduleDAO(ScheduleDAO scheduleDAO) {
		this.scheduleDAO = scheduleDAO;
	}
	
	public String update()throws Exception
	{
		
		ScheduleVO vo=new ScheduleVO();
		
		vo.setSno(sno);
		vo.setSabun(sabun);
		vo.setPsubject(psubject);
		vo.setPcontent(pcontent);
		vo.setPplace(pplace);
		vo.setSday(sday);
		vo.setSday1(sday1);
		vo.setSday2(sday2);
		
		
		
		
		scheduleDAO.UpdatePlan(vo);
		return "success";
	}
	
	
	
	
	

}
